<style>
    .form-horizontal .control-label {
    width: 140px;
    }
</style>
<?php if (AuthComponent::user()==NULL){ ?>
<!--<div class="row-fluid">
    <div class="span3"></div>
    <div class="span6">
        <a href="<?php echo $this->base?>/users/add" class="btn btn-large btn-inverse pull-right">Registrese</a>
    </div>
    <div class="span3"></div>
</div>-->
<!--<br/><br/>-->
<div class="row-fluid">
    <div class="span3"></div>
    <div class="span6">

        <!--    <h1> Ingresa: </h1>-->

        <!--    <div class="users form">-->
            <?php echo $this->Session->flash('auth'); ?>
            <?php echo $this->Form->create('User', array('class'=>'form-horizontal well')); 

            ?>

                <fieldset>
                    <legend><?php echo __('Inicio de sesión'); ?></legend>
                <?php

                    $optionsLabel = array('class' => 'control-label','text'=>'Usuario');
                    $options = array('div' => 'control-group','label'=>$optionsLabel,'class'=>'controls');    
                    echo $this->Form->input('username',$options);

                    $optionsLabelPass = array('class' => 'control-label','text'=>'Contraseña');
                    $optionsPass = array('div' => 'control-group','label'=>$optionsLabelPass,'class'=>'controls');    
                    echo $this->Form->input('password',$optionsPass);

                    $optionsBtn = array(
                                'label' => 'Ingresar','class' => 'btn btn-large btn-success pull-right','div' => 'form-actions'
                            );
                    echo $this->Form->end($optionsBtn);

                    ?>


                </fieldset>        

        <!--    </div>-->
    </div>
    <div class="span3"></div>
</div>

    
    
    
<?php } else {?>
    <?php echo '<h4>'.AuthComponent::user('username').', </h4>'.'</h5>'.'usted ya se encuentra autentificado'.'</h5>';?> 
    
    
<?php } ?>

    
    